home *** CD-ROM | disk | FTP | other *** search
- /*****
- from CTRACE: A MESSAGE LOGGING CLASS
- by William D. Cramer in Dr. Dobbs Journal #170, p. 44-55, 116-120.
- *****/
-
- /** CLogList.h -- Definitions for a LogList object. **/
- #define _H_CLogList
-
- #include <CList.h> /* definitions for superclass */
- #include <oops.h> /* standard OOP definitions */
- #include <string.h> /* miscellaneous string definitions */
-
- #define MAX_LOGREC_CHAR (200L) /* size of longest entry (inc NULL) */
-
- struct CLogList : CList
- {
- /* internal instance data */
- short maxRec; /* maximum number of records */
- /* local class methods */
- void ILogList (short records);
- void AddString (char *theString);
- void GetString (short which, char *theString);
- short GetMaxRecordCount (void);
- /* inherited methods overriden */
- void Dispose (void);
- };
-